home *** CD-ROM | disk | FTP | other *** search
/ MacAddict 19 / MacAddict_019_1998_03.iso / Media / STORE.dxr / Internal_5_index button.ls < prev    next >
Encoding:
Text File  |  1997-12-17  |  924 b   |  38 lines

  1. on mouseEnter me
  2.   cursor(280)
  3.   set the member of sprite the currentSpriteNum to "index.roll"
  4.   set the text of field "rollover text" to "Click here to view all the software titles currently in stock."
  5. end
  6.  
  7. on mouseLeave me
  8.   cursor(-1)
  9.   set the member of sprite the currentSpriteNum to "index"
  10.   set the text of field "rollover text" to " "
  11. end
  12.  
  13. on mouseDown me
  14.   global lastFrame
  15.   set lastFrame to the frame
  16.   case lastFrame of
  17.     14:
  18.       puppetSprite(1, 1)
  19.       puppetSprite(31, 1)
  20.       puppetSprite(32, 1)
  21.       puppetSprite(33, 1)
  22.       puppetSprite(34, 1)
  23.       go("index")
  24.     26:
  25.       puppetSprite(1, 1)
  26.       puppetSprite(32, 1)
  27.       puppetSprite(33, 1)
  28.       go("index")
  29.     36:
  30.       puppetSprite(1, 1)
  31.       go("index")
  32.   end case
  33. end
  34.  
  35. on getBehaviorDescription
  36.   return "Handles the rollover, cursor swap, and user click on the exit button. Will go to the index section of the store on mouseDown"
  37. end
  38.